import Mock from "mockjs";
// import jwt from "jsonwebtoken";
// let token="Bearer" + jwt.sign({foo:bar},"liu");

// Mock.mock("/api/login",{
//     msg:"登陆成功",
//     token:token
// })
Mock.mock("/api/imgs",{
    "imgs|6":["@image(370x100,@color)"]
})
Mock.mock("/api/data",{
    "data|15":[{
        "id":"@id",
        "name":"@cword(3,4)",
        "img":"@image(80x80,@color)",       
    }]
})

Mock.mock("/api/list",{
    "list|2":[{
        "id":"@id",
        "name":"@cword(4)",
        "info|20":[{
            "id":"@id",
            "title":"@ctitle(4,7)",
            "img":"@image(100x100,@color)",
            "price|1-1000":1,
        }]
        
    }]
})
